package com.can.entity;

import javax.validation.constraints.NotNull;

/**
 * @Desription 分页对象
 * @Author can
 * @Date 2018/10/23
 * @Version 1.0
 */
public class CPage<T> {
    /** 每页显示条数 */
    @NotNull(message="size(每页显示条数)不能为空")
    private Integer size;
    @NotNull(message="current(当前页)不能为空")
    /** 当前页 */
    private Integer current;
    /** 查询条件对象 **/
    private T entity;

    public T getEntity() {
        return entity;
    }

    public void setEntity(T entity) {
        this.entity = entity;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }
}
